<ul>
  <li><a href="index.php" <?php echo (basename($_SERVER['SCRIPT_FILENAME'])=='index.php'? "class='active'" : '');?>>home</a></li>
  <li><a href="alloffers.php" <?php echo (basename($_SERVER['SCRIPT_FILENAME'])=='alloffers.php'? "class='active'" : '');?>>All Offers</a></li>

  <li><a href="invitations.php" <?php echo (basename($_SERVER['SCRIPT_FILENAME'])=='invitations.php'? "class='active'" : '');?>>invite friends</a></li>
  <li><a href="#" <?php echo (basename($_SERVER['SCRIPT_FILENAME'])=='post_hotel.php'? "class='active'" : '');?>>post your hotel</a></li>
<?php /*?>  <li><a href="#" <?php echo (basename($_SERVER['SCRIPT_FILENAME'])=='advertise.php'? "class='active'" : '');?>>advertise</a></li>
<?php */?>
<?php if (isset($_SESSION['member_id'])) {
    $account_text='Logout';  
    $account_link='member_logout.php';
  }else{
    $account_text='create an account';
    $account_link='sign-up.php';
  }?>
  <li><a href="<?php echo $account_link;?>" <?php echo (basename($_SERVER['SCRIPT_FILENAME'])=='sign-up.php'? "class='active'" : '');?>><?php echo $account_text;?></a></li>
</ul>